package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;
import com.itheima.reggie.domain.SetmealDish;

import java.util.List;

//套餐
public interface SetmealService {
    //套餐列表
    Page<Setmeal> findPage(Integer page, Integer pageSize, String name);

    //回显套餐内容
    Setmeal findOne(Long id);

    //新增套餐
    void save(Setmeal setmeal);

    //批量启停售
    void updateStatus(Integer status, List<Long> ids);

    //批量删除
    void delete(List<Long> ids);
    //根据菜品id查询套餐列表
    List<Setmeal> findByCategoryId(Long categoryId, Integer status);

    //套餐id查内菜品list
    List<Dish> getDishes(Long setmealId);
}
